package com.assess.web.util;


import java.io.Serializable;

/**
 * Created by guoqi.
 */
public class RespParam<T> implements Serializable {
    private static final long serialVersionUID = -3914407467121544955L;

    private String code;
    private String errMsg;
    private T data;

    public RespParam() {
    }

    public RespParam(String code, String errMsg) {
        this.code = code;
        this.errMsg = errMsg;
    }

    public RespParam(String code, T obj) {
        this.code = code;
        this.data = obj;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
